<!DOCTYPE html>
<html>
<head>
    <title>测试快捷键API</title>
</head>
<body>
    <h1>测试快捷键API</h1>
    <button onclick="testAPI()">测试API调用</button>
    <div id="result"></div>

    <script>
        async function testAPI() {
            try {
                const response = await fetch('http://localhost:7001/api/v1/system/shortcuts');
                const data = await response.json();
                document.getElementById('result').innerHTML = '<pre>' + JSON.stringify(data, null, 2) + '</pre>';
            } catch (error) {
                document.getElementById('result').innerHTML = '<p>错误: ' + error.message + '</p>';
            }
        }
    </script>
</body>
</html>